package com.app.core.config;

public class Constants {

    public static final String DB_NAME = "specialtreasure.db";

    /**
     * 请求域名 线上
     **/
//    public static final String HOST = "test.oekocn.com";
    /**
     * 测试
     */
//    public static final String HOST = "192.168.1.162";
//    public static final String HOST = "139.129.232.78";
    public static final String HOST = "118.190.13.91"; //新

    /**
     * 请求域名+端口号
     **/

    public static final String HTTP_URL = "http://" + HOST + ":8080";

    public static final int ZERO = 0;
    public static final int ONE = 1;
    public static final int TWO = 2;
    public static final int THREE = 3;
    public static final int FOUR = 4;
    public static final int FIVE = 5;

    public static final String USERNAME = "username";
    public static final String PASSWORD = "password";

    //登陆成功信息
    public static final String LOGIN = "login";
    //加载框
    public static final String LOADING = "加载中";
    //自动登录
    public static final String AUTOLOGIN = "autologin";
    //更新我的车库事件
    public static final String UPDATEMETO = "updateMeto";
    //更新我的订单事件
    public static final String UPDATEORDER = "updateOrder";
    //更新信息管理
    public static final String UPDATEPUBLIC = "updatePublic";
    //更新我的同行
    public static final String UPDATEMYTRADE = "updateMyTrade";
    //更新货源信息
    public static final String UPDATEGOODS = "updateGoods";
    //更新同行
    public static final String UPDATETRADE = "updateTrade";
    //更新货主
    public static final String UPDATEOWNER = "updateOwner";
    //更新用户信息
    public static final String UPDATEUSER = "updateUser";

    //2001-2999
    public class MsgCode {
        public static final int ON_GETCODE = 1000;
        public static final int ON_SUBSCRIBE = 1001;
        public static final int ON_GETADS = 1002;
        public static final int ON_DELITEM = 1003;
        public static final int ON_GETSUBSCRIBE = 1004;
        public static final int ON_DELQUEUE = 1005;
        public static final int ON_CHANGE_FONTSIZE = 1006;
    }

    public class MQ {
        public static final String MQ_IP = "118.190.13.91";
        public static final int MQ_PORT = 5672;
        public static final String MQ_USERNAME = "online";
        public static final String MQ_PASSWORD = "online";
        public static final String MQ_VH = "/online";
        public static final String MQ_EX = "ONLINE-ITEM-EXCHANAGE";


        public static final String ANDROIDONE = "androidOne";//
        public static final String ANDROIDTWO = "androidTwo";//
        public static final String MQ_QNAME_EMPTY = "a_empty_";//


        public static final String GOODSADD = "z.503.0.";//货源信息的新信息订阅
        public static final String GOODSDEL = "z.503.1.";//货源信息的成交或删除

    }

    public class EventTag {
        public static final String ON_UPDATE_EMPTY = "ON_UPDATE_EMPTY";
        public static final String UPDATE_MINE = "UPDATE_MINE";
    }

}
